<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the AudioField class from the creator library, for the Dart programming language.">
  <title>AudioField class - creator library - Dart API</title>


  
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" rel="stylesheet">
  
  <link rel="stylesheet" href="../static-assets/github.css?v1">
  <link rel="stylesheet" href="../static-assets/styles.css?v1">
  <link rel="icon" href="../static-assets/favicon.png?v1">

  
</head>


<body data-base-href="../" data-using-base-href="false" class="light-theme">

<div id="overlay-under-drawer"></div>

<header id="title">
  <span id="sidenav-left-toggle" class="material-symbols-outlined" role="button" tabindex="0">menu</span>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="../index.html">yuuna</a></li>
    <li><a href="../creator/creator-library.html">creator</a></li>
    <li class="self-crumb">AudioField class</li>
  </ol>
  <div class="self-name">AudioField</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
  <div class="toggle" id="theme-button">
    <label for="theme">
      <input type="checkbox" id="theme" value="light-theme">
      <span id="dark-theme-button" class="material-symbols-outlined">
        brightness_4
      </span>
      <span id="light-theme-button" class="material-symbols-outlined">
        brightness_5
      </span>
    </label>
  </div>
</header>
<main>

  <div id="dartdoc-main-content" class="main-content">
      <div>
<h1><span class="kind-class">AudioField</span> class 
 
</h1></div>

    
<section class="desc markdown">
  <p>Returns audio information from context.</p>
</section>


    <section>
      <dl class="dl-horizontal">
        
  <dt>Inheritance</dt>
  <dd>
    <ul class="gt-separated dark clazz-relationships">
      <li><a href="https://api.flutter.dev/flutter/dart-core/Object-class.html">Object</a></li>
        <li><a href="../creator/Field-class.html">Field</a></li>
        <li><a href="../creator/AudioExportField-class.html">AudioExportField</a></li>
      <li>AudioField</li>
    </ul>
  </dd>

        
        



        


      </dl>
    </section>

    

    <section class="summary offset-anchor inherited" id="instance-properties">
      <h2>Properties</h2>

      <dl class="properties">
        <dt id="currentSearchTerm" class="property inherited">
  <span class="name"><a href="../creator/AudioExportField/currentSearchTerm.html">currentSearchTerm</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> 

</dt>
<dd class="inherited">
  The current search term for the image.
  <div class="features"><span class="feature">read-only</span><span class="feature">inherited</span></div>

</dd>

        <dt id="description" class="property inherited">
  <span class="name"><a href="../creator/Field/description.html">description</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span> 

</dt>
<dd class="inherited">
  A longer description of the field that will be used as its placeholder
message.
  <div class="features"><span class="feature">final</span><span class="feature">inherited</span></div>

</dd>

        <dt id="descriptionLocalisation" class="property inherited">
  <span class="name"><a href="../creator/Field/descriptionLocalisation.html">descriptionLocalisation</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/Map-class.html">Map</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>, <span class="type-parameter"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>&gt;</span></span> 

</dt>
<dd class="inherited">
  Localisations for this enhancement, where the key is a locale tag and
the value is the <a href="../creator/Field/description.html">description</a> of the enhancement. If the value for the
current locale is non-null, it will be used instead of <a href="../creator/Field/description.html">description</a>.
  <div class="features"><span class="feature">final</span><span class="feature">inherited</span></div>

</dd>

        <dt id="exportFile" class="property inherited">
  <span class="name"><a href="../creator/AudioExportField/exportFile.html">exportFile</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-io/File-class.html">File</a>?</span> 

</dt>
<dd class="inherited">
  The image file selected for export.
  <div class="features"><span class="feature">read-only</span><span class="feature">inherited</span></div>

</dd>

        <dt id="hashCode" class="property inherited">
  <span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/hashCode.html">hashCode</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a></span> 

</dt>
<dd class="inherited">
  The hash code for this object.
  <div class="features"><span class="feature">read-only</span><span class="feature">inherited</span></div>

</dd>

        <dt id="icon" class="property inherited">
  <span class="name"><a href="../creator/Field/icon.html">icon</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/widgets/IconData-class.html">IconData</a></span> 

</dt>
<dd class="inherited">
  An icon that will show the enhancement if activated by the user in the
quick menu.
  <div class="features"><span class="feature">final</span><span class="feature">inherited</span></div>

</dd>

        <dt id="isSearching" class="property inherited">
  <span class="name"><a href="../creator/AudioExportField/isSearching.html">isSearching</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> 

</dt>
<dd class="inherited">
  Whether or not searching is in progress.
  <div class="features"><span class="feature">read-only</span><span class="feature">inherited</span></div>

</dd>

        <dt id="label" class="property inherited">
  <span class="name"><a href="../creator/Field/label.html">label</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span> 

</dt>
<dd class="inherited">
  Name of the field that very shortly describes what it does.
  <div class="features"><span class="feature">final</span><span class="feature">inherited</span></div>

</dd>

        <dt id="labelLocalisation" class="property inherited">
  <span class="name"><a href="../creator/Field/labelLocalisation.html">labelLocalisation</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/Map-class.html">Map</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>, <span class="type-parameter"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>&gt;</span></span> 

</dt>
<dd class="inherited">
  Localisations for this enhancement, where the key is a locale tag and
the value is the <a href="../creator/Field/label.html">label</a> of the enhancement. If the value for the current
locale is non-null, it will be used instead of <a href="../creator/Field/label.html">label</a>.
  <div class="features"><span class="feature">final</span><span class="feature">inherited</span></div>

</dd>

        <dt id="maxLines" class="property inherited">
  <span class="name"><a href="../creator/Field/maxLines.html">maxLines</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a>?</span> 

</dt>
<dd class="inherited">
  Depends on whether this is <a href="../creator/Field/multiline.html">multiline</a> or not.
  <div class="features"><span class="feature">read-only</span><span class="feature">inherited</span></div>

</dd>

        <dt id="multiline" class="property inherited">
  <span class="name"><a href="../creator/Field/multiline.html">multiline</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> 

</dt>
<dd class="inherited">
  Controls whether this field is multiline or not.
  <div class="features"><span class="feature">final</span><span class="feature">inherited</span></div>

</dd>

        <dt id="runtimeType" class="property inherited">
  <span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/Type-class.html">Type</a></span> 

</dt>
<dd class="inherited">
  A representation of the runtime type of the object.
  <div class="features"><span class="feature">read-only</span><span class="feature">inherited</span></div>

</dd>

        <dt id="showWidget" class="property inherited">
  <span class="name"><a href="../creator/AudioExportField/showWidget.html">showWidget</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> 

</dt>
<dd class="inherited">
  Whether or not to show the top widget.
  <div class="features"><span class="feature">read-only</span><span class="feature">inherited</span></div>

</dd>

        <dt id="uniqueKey" class="property inherited">
  <span class="name"><a href="../creator/Field/uniqueKey.html">uniqueKey</a></span>
  <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span> 

</dt>
<dd class="inherited">
  A unique name that allows distinguishing this type from others,
particularly for the purposes of differentiating between persistent
settings keys.
  <div class="features"><span class="feature">final</span><span class="feature">inherited</span></div>

</dd>

      </dl>
    </section>

    
  <section
      class="summary offset-anchor"
      id="instance-methods">
    <h2>Methods</h2>
    <dl class="callables">
        <dt id="buildAudioPlayer" class="callable">
  <span class="name"><a href="../creator/AudioField/buildAudioPlayer.html">buildAudioPlayer</a></span><span class="signature">(<wbr>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/widgets/Widget-class.html">Widget</a></span>
  </span>
  

</dt>
<dd>
  Buiid the audio player.
  

</dd>

        <dt id="buildDisabledPlayer" class="callable">
  <span class="name"><a href="../creator/AudioField/buildDisabledPlayer.html">buildDisabledPlayer</a></span><span class="signature">(<wbr><span class="parameter" id="buildDisabledPlayer-param-context"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/widgets/BuildContext-class.html">BuildContext</a></span> <span class="parameter-name">context</span></span>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/widgets/Widget-class.html">Widget</a></span>
  </span>
  

</dt>
<dd>
  Buiid the audio player.
  

</dd>

        <dt id="buildDurationAndPosition" class="callable">
  <span class="name"><a href="../creator/AudioField/buildDurationAndPosition.html">buildDurationAndPosition</a></span><span class="signature">(<wbr>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/widgets/Widget-class.html">Widget</a></span>
  </span>
  

</dt>
<dd>
  Build the player duration label.
  

</dd>

        <dt id="buildPlayButton" class="callable">
  <span class="name"><a href="../creator/AudioField/buildPlayButton.html">buildPlayButton</a></span><span class="signature">(<wbr>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/widgets/Widget-class.html">Widget</a></span>
  </span>
  

</dt>
<dd>
  Build the play/pause button
  

</dd>

        <dt id="buildSlider" class="callable">
  <span class="name"><a href="../creator/AudioField/buildSlider.html">buildSlider</a></span><span class="signature">(<wbr>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/widgets/Widget-class.html">Widget</a></span>
  </span>
  

</dt>
<dd>
  Build the duration slider.
  

</dd>

        <dt id="buildTopWidget" class="callable">
  <span class="name"><a href="../creator/AudioField/buildTopWidget.html">buildTopWidget</a></span><span class="signature">(<wbr><span class="parameter" id="buildTopWidget-param-context">{<span>required</span> <span class="type-annotation"><a href="https://api.flutter.dev/flutter/widgets/BuildContext-class.html">BuildContext</a></span> <span class="parameter-name">context</span>, </span><span class="parameter" id="buildTopWidget-param-ref"><span>required</span> <span class="type-annotation"><a href="https://pub.dev/documentation/flutter_riverpod/1.0.4/flutter_riverpod/WidgetRef-class.html">WidgetRef</a></span> <span class="parameter-name">ref</span>, </span><span class="parameter" id="buildTopWidget-param-appModel"><span>required</span> <span class="type-annotation"><a href="../models/AppModel-class.html">AppModel</a></span> <span class="parameter-name">appModel</span>, </span><span class="parameter" id="buildTopWidget-param-creatorModel"><span>required</span> <span class="type-annotation"><a href="../models/CreatorModel-class.html">CreatorModel</a></span> <span class="parameter-name">creatorModel</span>, </span><span class="parameter" id="buildTopWidget-param-orientation"><span>required</span> <span class="type-annotation"><a href="https://api.flutter.dev/flutter/widgets/Orientation.html">Orientation</a></span> <span class="parameter-name">orientation</span>}</span>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/widgets/Widget-class.html">Widget</a></span>
  </span>
  

</dt>
<dd>
  Media fields are special and have a <a href="https://api.flutter.dev/flutter/widgets/Widget-class.html">Widget</a> that is shown at the top of
the Card Creator.
  <div class="features"><span class="feature">override</span></div>

</dd>

        <dt id="clearFieldState" class="callable">
  <span class="name"><a href="../creator/AudioField/clearFieldState.html">clearFieldState</a></span><span class="signature">(<wbr><span class="parameter" id="clearFieldState-param-creatorModel">{<span>required</span> <span class="type-annotation"><a href="../models/CreatorModel-class.html">CreatorModel</a></span> <span class="parameter-name">creatorModel</span>}</span>)
    <span class="returntype parameter">&#8594; void</span>
  </span>
  

</dt>
<dd>
  Clears this field's data. The state refresh afterwards is not performed
here and should be performed by the invocation of the clear field button.
  <div class="features"><span class="feature">override</span></div>

</dd>

        <dt id="getLocalisedDescription" class="callable inherited">
  <span class="name"><a href="../creator/Field/getLocalisedDescription.html">getLocalisedDescription</a></span><span class="signature">(<wbr><span class="parameter" id="getLocalisedDescription-param-appModel"><span class="type-annotation"><a href="../models/AppModel-class.html">AppModel</a></span> <span class="parameter-name">appModel</span></span>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>
  </span>
  

</dt>
<dd class="inherited">
  Get the best localisation for the description of this enhancement. If
there is no localisation, the fallback is <a href="../creator/Field/description.html">description</a>.
  <div class="features"><span class="feature">inherited</span></div>

</dd>

        <dt id="getLocalisedLabel" class="callable inherited">
  <span class="name"><a href="../creator/Field/getLocalisedLabel.html">getLocalisedLabel</a></span><span class="signature">(<wbr><span class="parameter" id="getLocalisedLabel-param-appModel"><span class="type-annotation"><a href="../models/AppModel-class.html">AppModel</a></span> <span class="parameter-name">appModel</span></span>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>
  </span>
  

</dt>
<dd class="inherited">
  Get the best localisation for the label of this enhancement. If there
is no localisation, the fallback is <a href="../creator/Field/label.html">label</a>.
  <div class="features"><span class="feature">inherited</span></div>

</dd>

        <dt id="getSearchTermWithFallback" class="callable inherited">
  <span class="name"><a href="../creator/AudioExportField/getSearchTermWithFallback.html">getSearchTermWithFallback</a></span><span class="signature">(<wbr><span class="parameter" id="getSearchTermWithFallback-param-appModel">{<span>required</span> <span class="type-annotation"><a href="../models/AppModel-class.html">AppModel</a></span> <span class="parameter-name">appModel</span>, </span><span class="parameter" id="getSearchTermWithFallback-param-creatorModel"><span>required</span> <span class="type-annotation"><a href="../models/CreatorModel-class.html">CreatorModel</a></span> <span class="parameter-name">creatorModel</span>, </span><span class="parameter" id="getSearchTermWithFallback-param-fallbackSearchTerms"><span>required</span> <span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/List-class.html">List</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../creator/Field-class.html">Field</a></span>&gt;</span></span> <span class="parameter-name">fallbackSearchTerms</span>}</span>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span>
  </span>
  

</dt>
<dd class="inherited">
  Fetches the search term to use from the <a href="../models/CreatorModel-class.html">CreatorModel</a>. If the field
controller is empty, use a fallback and inform the user that a fallback
has been used.
  <div class="features"><span class="feature">inherited</span></div>

</dd>

        <dt id="initialiseAudio" class="callable">
  <span class="name"><a href="../creator/AudioField/initialiseAudio.html">initialiseAudio</a></span><span class="signature">(<wbr><span class="parameter" id="initialiseAudio-param-file"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-io/File-class.html">File</a></span> <span class="parameter-name">file</span></span>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-async/Future-class.html">Future</a><span class="signature">&lt;<wbr><span class="type-parameter">void</span>&gt;</span></span>
  </span>
  

</dt>
<dd>
  Set up audio for new file.
  

</dd>

        <dt id="noSuchMethod" class="callable inherited">
  <span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/Invocation-class.html">Invocation</a></span> <span class="parameter-name">invocation</span></span>)
    <span class="returntype parameter">&#8594; dynamic</span>
  </span>
  

</dt>
<dd class="inherited">
  Invoked when a nonexistent method or property is accessed.
  <div class="features"><span class="feature">inherited</span></div>

</dd>

        <dt id="onCreatorClose" class="callable">
  <span class="name"><a href="../creator/AudioField/onCreatorClose.html">onCreatorClose</a></span><span class="signature">(<wbr>)
    <span class="returntype parameter">&#8594; void</span>
  </span>
  

</dt>
<dd>
  Executed on close of the creator screen.
  <div class="features"><span class="feature">override</span></div>

</dd>

        <dt id="onCreatorOpenAction" class="callable">
  <span class="name"><a href="../creator/AudioField/onCreatorOpenAction.html">onCreatorOpenAction</a></span><span class="signature">(<wbr><span class="parameter" id="onCreatorOpenAction-param-context">{<span>required</span> <span class="type-annotation"><a href="https://api.flutter.dev/flutter/widgets/BuildContext-class.html">BuildContext</a></span> <span class="parameter-name">context</span>, </span><span class="parameter" id="onCreatorOpenAction-param-ref"><span>required</span> <span class="type-annotation"><a href="https://pub.dev/documentation/flutter_riverpod/1.0.4/flutter_riverpod/WidgetRef-class.html">WidgetRef</a></span> <span class="parameter-name">ref</span>, </span><span class="parameter" id="onCreatorOpenAction-param-appModel"><span>required</span> <span class="type-annotation"><a href="../models/AppModel-class.html">AppModel</a></span> <span class="parameter-name">appModel</span>, </span><span class="parameter" id="onCreatorOpenAction-param-creatorModel"><span>required</span> <span class="type-annotation"><a href="../models/CreatorModel-class.html">CreatorModel</a></span> <span class="parameter-name">creatorModel</span>, </span><span class="parameter" id="onCreatorOpenAction-param-heading"><span>required</span> <span class="type-annotation"><a href="../dictionary/DictionaryHeading-class.html">DictionaryHeading</a></span> <span class="parameter-name">heading</span>, </span><span class="parameter" id="onCreatorOpenAction-param-creatorJustLaunched"><span>required</span> <span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">creatorJustLaunched</span>, </span><span class="parameter" id="onCreatorOpenAction-param-dictionaryName"><span>required</span> <span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">dictionaryName</span>}</span>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span>
  </span>
  

</dt>
<dd>
  Return the value that this field must have upon opening the Card Creator.
For example, the Sentence field must provide the current context or the
sentence that is stored in the app state, while the Image field may be
used to return a snapshot of the current app context.
  <div class="features"><span class="feature">override</span></div>

</dd>

        <dt id="setAudio" class="callable inherited">
  <span class="name"><a href="../creator/AudioExportField/setAudio.html">setAudio</a></span><span class="signature">(<wbr><span class="parameter" id="setAudio-param-appModel">{<span>required</span> <span class="type-annotation"><a href="../models/AppModel-class.html">AppModel</a></span> <span class="parameter-name">appModel</span>, </span><span class="parameter" id="setAudio-param-creatorModel"><span>required</span> <span class="type-annotation"><a href="../models/CreatorModel-class.html">CreatorModel</a></span> <span class="parameter-name">creatorModel</span>, </span><span class="parameter" id="setAudio-param-generateAudio"><span>required</span> <span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-async/Future-class.html">Future</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/dart-io/File-class.html">File</a>?</span>&gt;</span></span> <span class="parameter-name">generateAudio</span>(), </span><span class="parameter" id="setAudio-param-newAutoCannotOverride"><span>required</span> <span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">newAutoCannotOverride</span>, </span><span class="parameter" id="setAudio-param-cause"><span>required</span> <span class="type-annotation"><a href="../creator/EnhancementTriggerCause.html">EnhancementTriggerCause</a></span> <span class="parameter-name">cause</span>, </span><span class="parameter" id="setAudio-param-searchTerm"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">searchTerm</span>}</span>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-async/Future-class.html">Future</a><span class="signature">&lt;<wbr><span class="type-parameter">void</span>&gt;</span></span>
  </span>
  

</dt>
<dd class="inherited">
  Perform a function that generates a list of images and attempt a search
with a given search term.
  <div class="features"><span class="feature">inherited</span></div>

</dd>

        <dt id="setAudioFile" class="callable">
  <span class="name"><a href="../creator/AudioField/setAudioFile.html">setAudioFile</a></span><span class="signature">(<wbr><span class="parameter" id="setAudioFile-param-appModel">{<span>required</span> <span class="type-annotation"><a href="../models/AppModel-class.html">AppModel</a></span> <span class="parameter-name">appModel</span>, </span><span class="parameter" id="setAudioFile-param-creatorModel"><span>required</span> <span class="type-annotation"><a href="../models/CreatorModel-class.html">CreatorModel</a></span> <span class="parameter-name">creatorModel</span>, </span><span class="parameter" id="setAudioFile-param-file"><span>required</span> <span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-io/File-class.html">File</a></span> <span class="parameter-name">file</span>, </span><span class="parameter" id="setAudioFile-param-searchTermUsed"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">searchTermUsed</span>}</span>)
    <span class="returntype parameter">&#8594; void</span>
  </span>
  

</dt>
<dd>
  Takes a new file as the audio file.
  <div class="features"><span class="feature">override</span></div>

</dd>

        <dt id="setSearching" class="callable inherited">
  <span class="name"><a href="../creator/AudioExportField/setSearching.html">setSearching</a></span><span class="signature">(<wbr><span class="parameter" id="setSearching-param-appModel">{<span>required</span> <span class="type-annotation"><a href="../models/AppModel-class.html">AppModel</a></span> <span class="parameter-name">appModel</span>, </span><span class="parameter" id="setSearching-param-creatorModel"><span>required</span> <span class="type-annotation"><a href="../models/CreatorModel-class.html">CreatorModel</a></span> <span class="parameter-name">creatorModel</span>, </span><span class="parameter" id="setSearching-param-isSearching"><span>required</span> <span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span> <span class="parameter-name">isSearching</span>, </span><span class="parameter" id="setSearching-param-searchTerm"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">searchTerm</span>}</span>)
    <span class="returntype parameter">&#8594; void</span>
  </span>
  

</dt>
<dd class="inherited">
  Flag for showing the loading state of the picker.
  <div class="features"><span class="feature">inherited</span></div>

</dd>

        <dt id="toString" class="callable inherited">
  <span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/toString.html">toString</a></span><span class="signature">(<wbr>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>
  </span>
  

</dt>
<dd class="inherited">
  A string representation of this object.
  <div class="features"><span class="feature">inherited</span></div>

</dd>

    </dl>
  </section>
    
  <section
      class="summary offset-anchor inherited"
      id="operators">
    <h2>Operators</h2>
    <dl class="callables">
        <dt id="operator ==" class="callable inherited">
  <span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/Object-class.html">Object</a></span> <span class="parameter-name">other</span></span>)
    <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>
  </span>
  

</dt>
<dd class="inherited">
  The equality operator.
  <div class="features"><span class="feature">inherited</span></div>

</dd>

    </dl>
  </section>
    
  <section class="summary offset-anchor" id="static-properties">
    <h2>Static Properties</h2>

    <dl class="properties">
        <dt id="instance" class="property">
  <span class="name"><a href="../creator/AudioField/instance.html">instance</a></span>
  <span class="signature">&#8594; <a href="../creator/AudioField-class.html">AudioField</a></span> 

</dt>
<dd>
  Get the singleton instance of this field.
  <div class="features"><span class="feature">read-only</span></div>

</dd>

    </dl>
  </section>
    
    

  <section class="summary offset-anchor" id="constants">
    <h2>Constants</h2>

    <dl class="properties">
        <dt id="key" class="constant">
    <span class="name "><a href="../creator/AudioField/key-constant.html">key</a></span>
  <span class="signature">&#8594; const <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>
  

</dt>
<dd>
  The unique key for this field.
  

    <div>
      <span class="signature"><code>&#39;audio&#39;</code></span>
    </div>
</dd>

    </dl>
  </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
  <form class="search-sidebar" role="search">
    <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
  <li><a href="../index.html">yuuna</a></li>
  <li><a href="../creator/creator-library.html">creator</a></li>
  <li class="self-crumb">AudioField class</li>
</ol>


    <h5>creator library</h5>
    <ol>
      <li class="section-title"><a href="../creator/creator-library.html#classes">Classes</a></li>
        <li><a href="../creator/AddToStashAction-class.html">AddToStashAction</a></li>
        <li><a href="../creator/AnkiMapping-class.html">AnkiMapping</a></li>
        <li><a href="../creator/AudioEnhancement-class.html">AudioEnhancement</a></li>
        <li><a href="../creator/AudioExportField-class.html">AudioExportField</a></li>
        <li><a href="../creator/AudioField-class.html">AudioField</a></li>
        <li><a href="../creator/AudioRecorderEnhancement-class.html">AudioRecorderEnhancement</a></li>
        <li><a href="../creator/AudioSentenceField-class.html">AudioSentenceField</a></li>
        <li><a href="../creator/BingImagesSearchEnhancement-class.html">BingImagesSearchEnhancement</a></li>
        <li><a href="../creator/CameraEnhancement-class.html">CameraEnhancement</a></li>
        <li><a href="../creator/CardCreatorAction-class.html">CardCreatorAction</a></li>
        <li><a href="../creator/ClearFieldEnhancement-class.html">ClearFieldEnhancement</a></li>
        <li><a href="../creator/ClozeAfterField-class.html">ClozeAfterField</a></li>
        <li><a href="../creator/ClozeBeforeField-class.html">ClozeBeforeField</a></li>
        <li><a href="../creator/ClozeInsideField-class.html">ClozeInsideField</a></li>
        <li><a href="../creator/CollapsedMeaningField-class.html">CollapsedMeaningField</a></li>
        <li><a href="../creator/ContextField-class.html">ContextField</a></li>
        <li><a href="../creator/CopyToClipboardAction-class.html">CopyToClipboardAction</a></li>
        <li><a href="../creator/CreatorFieldValues-class.html">CreatorFieldValues</a></li>
        <li><a href="../creator/CropImageEnhancement-class.html">CropImageEnhancement</a></li>
        <li><a href="../creator/Enhancement-class.html">Enhancement</a></li>
        <li><a href="../creator/ExpandedMeaningField-class.html">ExpandedMeaningField</a></li>
        <li><a href="../creator/Field-class.html">Field</a></li>
        <li><a href="../creator/ForvoAudioEnhancement-class.html">ForvoAudioEnhancement</a></li>
        <li><a href="../creator/ForvoResult-class.html">ForvoResult</a></li>
        <li><a href="../creator/FrequencyField-class.html">FrequencyField</a></li>
        <li><a href="../creator/FuriganaField-class.html">FuriganaField</a></li>
        <li><a href="../creator/HiddenMeaningField-class.html">HiddenMeaningField</a></li>
        <li><a href="../creator/ImageEnhancement-class.html">ImageEnhancement</a></li>
        <li><a href="../creator/ImageExportField-class.html">ImageExportField</a></li>
        <li><a href="../creator/ImageField-class.html">ImageField</a></li>
        <li><a href="../creator/ImmersionKitEnhancement-class.html">ImmersionKitEnhancement</a></li>
        <li><a href="../creator/ImmersionKitResult-class.html">ImmersionKitResult</a></li>
        <li><a href="../creator/InstantExportAction-class.html">InstantExportAction</a></li>
        <li><a href="../creator/JapanesePod101AudioEnhancement-class.html">JapanesePod101AudioEnhancement</a></li>
        <li><a href="../creator/MassifExampleSentencesEnhancement-class.html">MassifExampleSentencesEnhancement</a></li>
        <li><a href="../creator/MassifResult-class.html">MassifResult</a></li>
        <li><a href="../creator/MeaningField-class.html">MeaningField</a></li>
        <li><a href="../creator/MediaField-class.html">MediaField</a></li>
        <li><a href="../creator/NotesField-class.html">NotesField</a></li>
        <li><a href="../creator/OpenStashEnhancement-class.html">OpenStashEnhancement</a></li>
        <li><a href="../creator/PickAudioEnhancement-class.html">PickAudioEnhancement</a></li>
        <li><a href="../creator/PickImageEnhancement-class.html">PickImageEnhancement</a></li>
        <li><a href="../creator/PitchAccentField-class.html">PitchAccentField</a></li>
        <li><a href="../creator/PitchSvg-class.html">PitchSvg</a></li>
        <li><a href="../creator/PlayAudioAction-class.html">PlayAudioAction</a></li>
        <li><a href="../creator/PopFromStashEnhancement-class.html">PopFromStashEnhancement</a></li>
        <li><a href="../creator/QuickAction-class.html">QuickAction</a></li>
        <li><a href="../creator/ReadingField-class.html">ReadingField</a></li>
        <li><a href="../creator/SaveTagsEnhancement-class.html">SaveTagsEnhancement</a></li>
        <li><a href="../creator/SearchDictionaryEnhancement-class.html">SearchDictionaryEnhancement</a></li>
        <li><a href="../creator/SearchHistoryItem-class.html">SearchHistoryItem</a></li>
        <li><a href="../creator/SentenceField-class.html">SentenceField</a></li>
        <li><a href="../creator/SentencePickerEnhancement-class.html">SentencePickerEnhancement</a></li>
        <li><a href="../creator/ShareAction-class.html">ShareAction</a></li>
        <li><a href="../creator/TagsField-class.html">TagsField</a></li>
        <li><a href="../creator/TatoebaExampleSentencesEnhancement-class.html">TatoebaExampleSentencesEnhancement</a></li>
        <li><a href="../creator/TermField-class.html">TermField</a></li>
        <li><a href="../creator/TextSegmentationEnhancement-class.html">TextSegmentationEnhancement</a></li>

      <li class="section-title"><a href="../creator/creator-library.html#extensions">Extensions</a></li>
        <li><a href="../creator/AnkiMappingByIndex.html">AnkiMappingByIndex</a></li>
        <li><a href="../creator/AnkiMappingQueryFilter.html">AnkiMappingQueryFilter</a></li>
        <li><a href="../creator/AnkiMappingQueryLinks.html">AnkiMappingQueryLinks</a></li>
        <li><a href="../creator/AnkiMappingQueryObject.html">AnkiMappingQueryObject</a></li>
        <li><a href="../creator/AnkiMappingQueryProperty.html">AnkiMappingQueryProperty</a></li>
        <li><a href="../creator/AnkiMappingQuerySortBy.html">AnkiMappingQuerySortBy</a></li>
        <li><a href="../creator/AnkiMappingQuerySortThenBy.html">AnkiMappingQuerySortThenBy</a></li>
        <li><a href="../creator/AnkiMappingQueryWhere.html">AnkiMappingQueryWhere</a></li>
        <li><a href="../creator/AnkiMappingQueryWhereDistinct.html">AnkiMappingQueryWhereDistinct</a></li>
        <li><a href="../creator/AnkiMappingQueryWhereSort.html">AnkiMappingQueryWhereSort</a></li>
        <li><a href="../creator/GetAnkiMappingCollection.html">GetAnkiMappingCollection</a></li>
        <li><a href="../creator/GetSearchHistoryItemCollection.html">GetSearchHistoryItemCollection</a></li>
        <li><a href="../creator/SearchHistoryItemByIndex.html">SearchHistoryItemByIndex</a></li>
        <li><a href="../creator/SearchHistoryItemQueryFilter.html">SearchHistoryItemQueryFilter</a></li>
        <li><a href="../creator/SearchHistoryItemQueryLinks.html">SearchHistoryItemQueryLinks</a></li>
        <li><a href="../creator/SearchHistoryItemQueryObject.html">SearchHistoryItemQueryObject</a></li>
        <li><a href="../creator/SearchHistoryItemQueryProperty.html">SearchHistoryItemQueryProperty</a></li>
        <li><a href="../creator/SearchHistoryItemQuerySortBy.html">SearchHistoryItemQuerySortBy</a></li>
        <li><a href="../creator/SearchHistoryItemQuerySortThenBy.html">SearchHistoryItemQuerySortThenBy</a></li>
        <li><a href="../creator/SearchHistoryItemQueryWhere.html">SearchHistoryItemQueryWhere</a></li>
        <li><a href="../creator/SearchHistoryItemQueryWhereDistinct.html">SearchHistoryItemQueryWhereDistinct</a></li>
        <li><a href="../creator/SearchHistoryItemQueryWhereSort.html">SearchHistoryItemQueryWhereSort</a></li>

      <li class="section-title"><a href="../creator/creator-library.html#mixins">Mixins</a></li>
        <li><a href="../creator/AudioGeneratorMixin-mixin.html">AudioGeneratorMixin</a></li>
        <li><a href="../creator/ImageGeneratorMixin-mixin.html">ImageGeneratorMixin</a></li>

      <li class="section-title"><a href="../creator/creator-library.html#constants">Constants</a></li>
        <li><a href="../creator/AnkiMappingSchema-constant.html">AnkiMappingSchema</a></li>
        <li><a href="../creator/SearchHistoryItemSchema-constant.html">SearchHistoryItemSchema</a></li>



      <li class="section-title"><a href="../creator/creator-library.html#enums">Enums</a></li>
        <li><a href="../creator/EnhancementTriggerCause.html">EnhancementTriggerCause</a></li>
        <li><a href="../creator/SortingMethod.html">SortingMethod</a></li>


</ol>

  </div>

  <div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
    <ol>



        <li class="section-title inherited">
          <a href="../creator/AudioField-class.html#instance-properties">Properties</a>
        </li>
          <li class="inherited"><a href="../creator/AudioExportField/currentSearchTerm.html">currentSearchTerm</a></li>
          <li class="inherited"><a href="../creator/Field/description.html">description</a></li>
          <li class="inherited"><a href="../creator/Field/descriptionLocalisation.html">descriptionLocalisation</a></li>
          <li class="inherited"><a href="../creator/AudioExportField/exportFile.html">exportFile</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/hashCode.html">hashCode</a></li>
          <li class="inherited"><a href="../creator/Field/icon.html">icon</a></li>
          <li class="inherited"><a href="../creator/AudioExportField/isSearching.html">isSearching</a></li>
          <li class="inherited"><a href="../creator/Field/label.html">label</a></li>
          <li class="inherited"><a href="../creator/Field/labelLocalisation.html">labelLocalisation</a></li>
          <li class="inherited"><a href="../creator/Field/maxLines.html">maxLines</a></li>
          <li class="inherited"><a href="../creator/Field/multiline.html">multiline</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></li>
          <li class="inherited"><a href="../creator/AudioExportField/showWidget.html">showWidget</a></li>
          <li class="inherited"><a href="../creator/Field/uniqueKey.html">uniqueKey</a></li>

        <li class="section-title"><a href="../creator/AudioField-class.html#instance-methods">Methods</a></li>
          <li><a href="../creator/AudioField/buildAudioPlayer.html">buildAudioPlayer</a></li>
          <li><a href="../creator/AudioField/buildDisabledPlayer.html">buildDisabledPlayer</a></li>
          <li><a href="../creator/AudioField/buildDurationAndPosition.html">buildDurationAndPosition</a></li>
          <li><a href="../creator/AudioField/buildPlayButton.html">buildPlayButton</a></li>
          <li><a href="../creator/AudioField/buildSlider.html">buildSlider</a></li>
          <li><a href="../creator/AudioField/buildTopWidget.html">buildTopWidget</a></li>
          <li><a href="../creator/AudioField/clearFieldState.html">clearFieldState</a></li>
          <li class="inherited"><a href="../creator/Field/getLocalisedDescription.html">getLocalisedDescription</a></li>
          <li class="inherited"><a href="../creator/Field/getLocalisedLabel.html">getLocalisedLabel</a></li>
          <li class="inherited"><a href="../creator/AudioExportField/getSearchTermWithFallback.html">getSearchTermWithFallback</a></li>
          <li><a href="../creator/AudioField/initialiseAudio.html">initialiseAudio</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
          <li><a href="../creator/AudioField/onCreatorClose.html">onCreatorClose</a></li>
          <li><a href="../creator/AudioField/onCreatorOpenAction.html">onCreatorOpenAction</a></li>
          <li class="inherited"><a href="../creator/AudioExportField/setAudio.html">setAudio</a></li>
          <li><a href="../creator/AudioField/setAudioFile.html">setAudioFile</a></li>
          <li class="inherited"><a href="../creator/AudioExportField/setSearching.html">setSearching</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/toString.html">toString</a></li>

        <li class="section-title inherited"><a href="../creator/AudioField-class.html#operators">Operators</a></li>
          <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html">operator ==</a></li>


        <li class="section-title"><a href="../creator/AudioField-class.html#static-properties">Static properties</a></li>
          <li><a href="../creator/AudioField/instance.html">instance</a></li>


        <li class="section-title"><a href="../creator/AudioField-class.html#constants">Constants</a></li>
          <li><a href="../creator/AudioField/key-constant.html">key</a></li>
</ol>

  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    yuuna
      2.8.0+93
  </span>

  
</footer>



<script src="../static-assets/highlight.pack.js?v1"></script>
<script src="../static-assets/docs.dart.js"></script>



</body>

</html>

